home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
wtek0693.zip
/
OOPALLEY.ZIP
/
XRECT.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-27
|
824b
|
26 lines
#include "point.h"
#include "rect.h"
//#include "OrderedCltn.h" // -gmv no OrderedCltn in rect
#include "ordcltn.h" // -gmv 2/24/90: added support for
// OrderedCltn.
main()
{
cout << "\nTest class Rectangle\n";
Rectangle a(0,0,10,10);
Rectangle b(Point(1,2),Point(11,3));
Rectangle c;
cout << "a = " << a << "\n";
cout << "b = " << b << "\n";
cout << "a == b: " << (a==b) << "\n";
c = a;
cout << "a isEqual c: " << a.isEqual(c) << "\n";
cout << "a contains b: " << a.contains(b) << "\n";
cout << "a intersects b: " << a.intersects(b) << "\n";
cout << "a||b = " << (a||b) << "\n";
cout << "a&&b = " << (a&&b) << "\n";
cout << a.areasOutside(b); //-gmv no OrderedCltn in rect
return 0;
}